﻿using System.ComponentModel.DataAnnotations;
using Lbb.Localization;

namespace Lbb.DataAnnotations
{
    /// <summary>
    /// 指定需要数据字段值。
    /// </summary>
    /// <author>Chiron</author>
    public class NRequiredAttribute : RequiredAttribute
    {
        /// <summary>
        /// 需要数据字段值
        /// </summary>
        public NRequiredAttribute()
        {
            ErrorMessageResourceType = typeof(ErrorRes);
            ErrorMessageResourceName = "Required";
        }
    }
}
